package orders;


public class Test {

	public static void main(String[] args)
	{
//		List<String> lst = new ArrayList<String>();
//		try
//		{
//			if ("" !=  lst.get(5))
//				System.out.println();
//		} catch (Exception e)
//		{
//			System.out.println("catch");
//		}
//		finally
//		{
//			System.out.println("finally");
//		}
		
		Order intockOrder = new IntockOrder("Thu Duc");
		Order onlineOrder = new OnlineOrder();
		Order order3 = new IntockOrder("Tan Binh");
		Order order4 = new OnlineOrder();
		
		Item item1 = new Item("milk", 6500, 0, 3, "box");
		Item item2 = new Item("coffee", 2000, 0, 20, "box");
		Item item3 = new Item("banana", 10000, 7.0, 3, "kg");
		Item item4 = new Item("tomato", 20000, 10, 3, "kg");
		
		intockOrder.addItem(item1);
		intockOrder.addItem(item2);
		intockOrder.addItem(item3);
		
		onlineOrder.addItem(item1);
		onlineOrder.addItem(item3);
		onlineOrder.addItem(item4);
		onlineOrder.setDiscount(5);
		
		order3.addItem(item1);
		order3.addItem(item3);
		
		order4.addItem(item4);
		
		Customer customer = new Customer("Minh Tri", Customer.MEMBER);
		customer.addOrder(onlineOrder);
		customer.addOrder(order4);
		customer.addOrder(order3);
		customer.addOrder(intockOrder);
		
		customer.sort();
		customer.getAllOrder();
		
		
//		intockOrder.getPrice();
//		System.out.println();
//		onlineOrder.getPrice();
		
		
	}
}
